class1 = ['张三', '李四']
class2 = ['王五', '赵六']
class3 = ['田七', '钱八']

school_list = [class1,class2,class3] # [['张三', '李四'],['王五', '赵六'],['田七', '钱八']]

# 获取学生王五.
print(school_list[1][0]) # 王五

print('----------')

# 打印学校所有人.
for c in school_list:
    for name in c:
        print(name)